class Employee:
    _count = 0

    def __init__(self):
        type(self)._count += 1

    @classmethod
    def get_count(cls):
        return cls._count

# 测试
e1 = Employee()
e2 = Employee()
print(Employee.get_count())  # 输出: 2